package org.example.design.责任;

/**
 * @Auther:Liu
 * @Testname:Handler
 * @Date:2025/8/15 12:28
 */
public abstract class Handler {
    private Handler nexthandler;
    public void setNext(Handler next) {
        this.nexthandler = next;
    }

    public Handler getNext() {
        return this.nexthandler;
    }

    public abstract void handle(int day);
}
